// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        color_choose_layout : cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start() {

    },

    onStartGameBtnClick() {
        console.log("onStartGameBtnClick called")
        cc.director.loadScene("drawScene");
    },

    onLeaveRoomBtnClick() {
        console.log("onLeaveRoomBtnClick called")
        cc.director.loadScene("mainScene");
    },

    onInviteBtnClick() {
        console.log("onInviteBtnClick called")
    },

    onSendBtnClick() {
        console.log("onSendBtnClick called")
    },

    onPenSetBtnClick() {
        console.log("onPenSetBtnClick called")
        this.color_choose_layout.getComponent('PenSet').setLayoutVisiable()
    },

    // update (dt) {},
});
